<?php

class details_fields_type_m_order {
    /**
     * Billing type field
     */
    const BILLING = "B";
    /**
     * Shipping type details field
     */
    const SHIPPING = "S";
    /**
     * Extra information field during checkout details.
     * This data is eventually saved in the order_tetra_data table
     */
    const EXTRA = "E";

    private static $types = array('B' => 'Billing Information','S'=>'Shipping Information','E'=>'Other Information');

    public static function get_desc($type){
        return self::$types[$type];
    }

    public static function get_all_types(){
        return self::$types;
    }

    public function get_address_types(){
        return array(self::BILLING=>self::$types[self::BILLING],self::SHIPPING=>self::$types[self::SHIPPING]);
    }

    

}

?>
